package com.stone;

import com.alibaba.dubbo.config.spring.context.annotation.EnableDubbo;
import com.stone.controller.SiteController;
import org.apache.catalina.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;
import com.stone.swagger.annotation.EnableZhcxSwagger2;

import java.lang.reflect.Field;


/**
 * @EnableScheduling 定时任务
 * @EnableZhcxSwagger2 swagger
 * @EnableDiscoveryClient 服务发现
 * @EnableDubbo dubbo
 * @author stone
 */

@SpringBootApplication
@EnableScheduling
@EnableZhcxSwagger2
@EnableDiscoveryClient
@EnableDubbo
public class StoneBusinessProjectBizApplication {

    public static void main(String[] args) {

        AnnotationConfigApplicationContext context1 = new AnnotationConfigApplicationContext(Configuration.class);
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring.xml");

        SpringApplication.run(StoneBusinessProjectBizApplication.class, args);


    }
}
